﻿<!DOCTYPE html>
<!--HTML5 doctype-->
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>查看订单详情 - {site.name}</title>
<link rel="stylesheet" type="text/css" href="<%templateskin%>/jqmobi/css/icons.css" />
<link rel="stylesheet" type="text/css" href="<%templateskin%>/jqmobi/css/af.ui.base.css" />
<link rel="stylesheet" type="text/css" href="<%templateskin%>/css/style.css" />
<link rel="stylesheet" type="text/css" href="{config.webpath}scripts/artdialog/ui-dialog.css" />
<!--jqMobi主JS-->
<script type="text/javascript" charset="utf-8" src="{config.webpath}scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/jqmobi/jq.appframework.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/jqmobi/ui/appframework.ui.js"></script>
<!--jqMobi插件-->
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/jqmobi/plugins/jq.slidemenu.js"></script>
<script type="text/javascript" charset="utf-8" src="{config.webpath}scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/base.js"></script>
</head>

<body>
<div id="afui">
  <div id="content">

	<div id="mainPanel" class="panel" data-footer="main_footer">
      <header>
        <a href="javascript:;" onclick="history.back(-1);" class="backButton">返回</a>
        <h1>查看订单</h1>
        <a onclick="$.ui.toggleSideMenu()" class="menuButton"></a>
      </header>
      
      <div class="wrap-box">
        <h2>订单信息</h2>
        <dl>
          <dt>订单号</dt>
          <dd>{model.order_no}</dd>
        </dl>
        <dl>
          <dt>订单状态</dt>
          <dd><%=get_order_status(model.id)%></dd>
        </dl>
        <dl>
          <dt>配送方式</dt>
          <dd><%=get_express_title(model.express_id)%></dd>
        </dl>
        <dl>
          <dt>支付方式</dt>
          <dd><%=get_payment_title(model.payment_id)%></dd>
        </dl>
      </div>
      
      <div class="wrap-box">
        <h2>收货信息</h2>
        <dl>
          <dt>顾客姓名</dt>
          <dd>{model.accept_name}</dd>
        </dl>
        <dl>
          <dt>送货地址</dt>
          <dd>{model.area} {model.address} {model.post_code}</dd>
        </dl>
        <dl>
          <dt>联系电话</dt>
          <dd>{model.mobile} {model.telphone}</dd>
        </dl>
        <dl>
          <dt>备注留言</dt>
          <dd>{model.message}</dd>
        </dl>
        <dl>
          <dt>开具发票：</dt>
          <dd>
            <%if({model.is_invoice}==1)%>
             是
            <%else%>
             否
            <%/if%>
          </dd>
        </dl>
        <%if({model.is_invoice}==1)%>
        <dl>
          <dt>发票抬头：</dt>
          <dd>
            {model.invoice_title}
          </dd>
        </dl>
        <%/if%>
      </div>
      
      <div>
        <ul class="car-list inset">
          <%if(model.order_goods!=null)%>
          <%foreach(DTcms.Model.order_goods modelt in model.order_goods)%>
          <li>
            <a href="<%linkurl("goods_show",{modelt.article_id})%>" data-ignore="true" class="img-box">
              <img src="<%=get_article_img_url(modelt.article_id)%>" />
            </a>
            <h2>{modelt.goods_title}</h2>
            <%if({modelt.spec_text}!="")%>
              <p class="stxt">{modelt.spec_text}</p>
            <%/if%>
            <div class="note">
              <span>共{modelt.quantity}件</span>
              <i class="price">￥<%=(modelt.real_price*modelt.quantity)%></i>
            </div>
          </li>
          <%/foreach%>
          <%else%>
          <div class="nodata">
            <h1></h1>
            <p>暂无商品信息</p>
          </div>
          <%/if%>
        </ul>
      </div>
      
      <div class="wrap-box">
        <h2>应付总金额：<b class="red">￥{model.order_amount}</b></h2>
        <p>运费：￥{model.express_fee}&nbsp;&nbsp;手续费：￥{model.payment_fee}&nbsp;&nbsp;税费：{model.invoice_taxes}</p>
        <p>商品：￥{model.real_amount}&nbsp;&nbsp;总积分：{model.point}分</p>
      </div>
      <div>
        <%if(model.status<3 && get_order_payment_status(model.id))%>
        <a href="<%linkurl("payment","?action=confirm&order_no="+model.order_no)%>" data-ignore="true" class="btn red full">确认付款</a>
        <%/if%>
        <%if(model.status<2)%>
        <a href="javascript:;" onclick="clickSubmit('{config.webpath}tools/submit_ajax.ashx?action=order_cancel&order_no={model.order_no}');" class="btn full">取消订单</a>
        <%/if%>
      </div>
      
      <!--版权信息-->
      <%template src="_copyright.html"%>
      <!--/版权信息-->
    
	</div>
  
    
    <!--底部导航-->
    <%template src="_footer.html"%>
    <!--/底部导航-->
	
    <!--左侧导航-->
    <%template src="_nav.html"%>
    <!--/左侧导航-->
      
  </div>
</div>
</body>
</html>
